package cn.fl.capital.service;

import java.util.List;

import cmm.mid.core.framework.dto.DataResultDTO;
import cmm.mid.core.framework.page.KeyValueVO;
import cmm.mid.core.framework.page.Pager;
import cn.cmm.base.framework.exception.BaseException;
import cn.fl.capital.vo.CapClaimInfoFlowSHVO;
import cn.fl.capital.vo.CapClaimInfoVO;
import cn.fl.product.vo.SplFlowSHVO;
import fl.flow.facade.flow.dto.FlowStartParamsDTO;

/**
 * @Description: 超时理赔记录表 客户端服务层接口
 * @Description: 持久层方法名称前缀：新增：insert* 删除：delete* 修改：update* 批量：batch* 查询对象：select* get* find* 查询集合：select*
 * @Description: 业务层方法名称前缀：新增：add* 删除：remove* 修改：modify* 查询对象：select* get* 批量：batch* 查询集合：search*
 */
public interface ICapClaimInfoService {
	
	/**
	 * 获取唯一对象
	 * @param id 主键
	 * @return 对象DTO
	 */
	public CapClaimInfoVO selectById(Long id)throws BaseException;
	/**
	 * 新增
	 * @param entity
	 * @return
	 */
    public Long add(CapClaimInfoVO entity) throws BaseException;

    /**
     * 删除
     * @param id
     * @return
     */
    public boolean removeById(Long id)throws BaseException;
    
    /**
     * 删除
     * @param ids
     * @return
     */
    public boolean removeByIds(List<Long> ids)throws BaseException;

    /**
     * 修改
     * @param entity
     * @return
     */
    public boolean modify(CapClaimInfoVO entity)throws BaseException;

    /**
     * 分页查询所有
     * @param page
     * @return
     */
    public Pager searchListPage(Pager page)throws BaseException;
    /**
     * 查询准时放款超时赔付列表
     * @param page
     * @return
     * @throws BaseException
     */
    public Pager searchCapPayInfoListPage(Pager page)throws BaseException;
    
    /**
	 * 理赔状态
	 * @return
	 * @throws BaseException
	 */
	public List<KeyValueVO> getClaStsCdList() throws BaseException;
    /**
     * 超时理赔相关流程
     * @param splId
     * @return
     * @throws BaseException
     */
    public List<CapClaimInfoFlowSHVO> searchCapCaimFlowList(Long splId)throws BaseException;
	/**
	 * 查询理赔记录表及放款表信息
	 * @param claimId
	 * @return
	 * @throws BaseException
	 */
	public CapClaimInfoVO selectCapClaimInfoAndCapPayInfoById(Long claimId) throws BaseException;

	/**
	 * 收款方类型
	 * @return
	 * @throws BaseException
	 */
	public List<KeyValueVO> getPayeeTypCdList() throws BaseException;

	/**
	 * 收款账户类型
	 * @return
	 * @throws BaseException
	 */
	public List<KeyValueVO> getBkAccTypCdList() throws BaseException;
	/**
	 * 付款方式类型
	 * @return
	 * @throws BaseException
	 */
	public List<KeyValueVO> getPayWayCdList() throws BaseException;
    /**
     * 根据用户ID和业务主键等参数启动流程
     * @param flowStartParamsDTO 启动参数
     */
    public DataResultDTO addFlowStart(FlowStartParamsDTO flowStartParamsDTO)throws BaseException;


	/**
     * 理赔流程修改数据
     * @param entity
     * @return
     */
    public boolean modifyCapClaimInfoByFlow(CapClaimInfoVO entity)throws BaseException;
    /**
     * 超时理赔相关流程
     * @param capClaimId
     * @return
     * @throws BaseException
     */
    public List<CapClaimInfoFlowSHVO> searchCapClaimFlowList(Long capClaimId)throws BaseException;


}
